﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PublicUserUserControl.ascx.cs"
    Inherits="JM.JCY.SharePointComponent.PersonalHome.PublicUser.PublicUserUserControl" %>
<script src="/_layouts/JM.JCY.Resource/TinyMCE/jscripts/tiny_mce/jquery.tinymce.js"
    type="text/javascript"></script>
<script type="text/javascript">

    $(document).ready(function () {
        $("#tdToggleStaffInfo1").click(function () {
            var div = document.getElementById("divToggleStaffInfo");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleStaffInfo").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleStaffInfo").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");

            }
        });
    });

    $(document).ready(function () {
        $("#tdToggleStaffInfo2").click(function () {
            var div = document.getElementById("divToggleStaffInfo");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleStaffInfo").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleStaffInfo").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");

            }
        });
    });

    $(document).ready(function () {
        //ignore enter command
        $(function () {
            $("input[type=text]").keydown(function () {
                return (event.keyCode != 13);
            });
        });

        //for tinymce - custom richtexteditor
        $('textarea.tinymce').tinymce({
            // Location of TinyMCE script
            script_url: '/_layouts/JM.JCY.Resource/TinyMCE/jscripts/tiny_mce/tiny_mce.js',

            // General options
            theme: "advanced",
            plugins: "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",

            // Theme options
            //theme_advanced_buttons1: "cut,copy,paste,removeformat,|,undo,redo,|,tablecontrols,|,link,unlink,image,code",
            theme_advanced_buttons2: "fontsizeselect,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,numlist,bullist,outdent,indent",
            theme_advanced_buttons3: "",
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            //theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing: false,

            // Example content CSS (should be your site CSS)
            content_css: "css/content.css",

            // Drop lists for link/image/media/template dialogs
            template_external_list_url: "lists/template_list.js",
            external_link_list_url: "lists/link_list.js",
            external_image_list_url: "lists/image_list.js",
            media_external_list_url: "lists/media_list.js"
        });
    });

</script>
<div>
    <table class="main" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <table class="webpart" width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <th align="left" id="tdToggleStaffInfo1" class="title" width="50%" style="cursor: pointer">
                            个人基本信息
                        </th>
                        <th id="tdToggleStaffInfo2" class="link" align="right" width="50%" style="cursor: pointer">
                            <img class="toggle" id="imgToggleStaffInfo" src="/_layouts/JM.JCY.Resource/images/toggle_collapse.png" />
                        </th>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="divToggleStaffInfo">
                                <table width="100%">
                             
                                        <tr>
                                            <td valign="top" width="100%" class="style10">
                                                <div>
                                                    <table width="100%" class="profile">
                                                   
                                                            <tr>
                                                                <td rowspan="9" width="130">
                                                                    <asp:Image ID="imgUserPhotoDis" runat="server" Width="120" />
                                                                </td>
                                                            </tr>
                                                            <tr id="TRImage" runat="server">
                                                                <td width="120">
                                                                    照片:
                                                                </td>
                                                               
                                                                <td>
                                                                    <asp:FileUpload ID="filePhoto" runat="server"  Width="200"/>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td width="120">
                                                                    姓名:
                                                                </td>
                                                               
                                                              
                                                                <td>
                                                                    <asp:Label ID="lblNameDis" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    部门:
                                                                </td>
                                                               
                                                                <td>
                                                                    <asp:Label ID="lblDeptDis" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    办公室:
                                                                </td>
                                                               
                                                                <td>
                                                                    <asp:Label ID="lblOffice" runat="server"></asp:Label>
                                                             
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    办公室电话:
                                                                </td>
                                                                
                                                                <td>
                                                                    <asp:Label ID="lblOfficeNumber" runat="server"></asp:Label>
                                                              
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    手机:
                                                                </td>
                                                              
                                                                <td>
                                                                    <asp:Label ID="lblMobileNumber" runat="server"></asp:Label>
                                                                
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    家庭电话:
                                                                </td>
                                                               
                                                                <td>
                                                                    <asp:Label ID="lblHomeNumber" runat="server"></asp:Label>
                                                              
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    电子邮件:
                                                                </td>
                                                               
                                                                <td>
                                                                    <asp:Label ID="lblEmail" runat="server"></asp:Label>
                                                            
                                                                </td>
                                                            </tr>
         </table>
         <hr />
                                                    <table width="100%">
                                                            <tr>
                                                                <td width="100">
                                                                    工作理念:
                                                                </td>
                                                              
                                                                <td>
                                                                    <asp:Label ID="lblUserCulture" runat="server" Font-Size="Medium"></asp:Label>
                                                                
                                                                </td>
                                                            </tr>
                                                     </table>
                                                   <table width="100%">   <tr>
                                            <td align="right" colspan="4">
                                                <img src="/_layouts/JM.JCY.Resource/images/back_Link.png" width="12" />
                                                <a href="#" onclick="javascript:window.history.go(-1)">返回</a>
                                            </td>
                                        </tr> </table>
                                              
                                           
                                                </div>
                                            </td>
                                        </tr>
                              
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>



  
<asp:HiddenField ID="hfStaffd" runat="server" />
